<!DOCTYPE html>
<head>

</head>
<body>
<div style="padding-left: 50px;">
    <div class="lh30" style="font-size: 20px;">您正在修改账号信息</div>
    <form action="" method="post" id="bmForm">
        <label for="phone" class=" block">
            <div class="label" style="">请输入手机号</div>
            <input class="eftext " name="phone" id="phone" type="text"  required>
        </label>
        <label for="email" class=" block">
            <div class="label" style="">请输入邮箱</div>
            <input class="eftext " name="email" id="email" type="text" >
        </label>
        <div class="text-right" style="margin-top: 20px;width:300px;">
            <a id="bmSave" href="#" >保存</a>
        </div>
    </form>
</div>

<script src="/userManage/userManage.js"></script>
<script>
    $('#phone').textbox({
        validType:'phone',
        width:300,
        height:30
    })
    $('#email').textbox({
        validType:'email',
        width:300,
        height:30
    })
    $('#bmForm').form('load',{phone:phone,email:email});
    $('#bmSave').linkbutton({
        iconCls:'icon-ok',
        onClick:function(){
            $('#bmForm').form('submit',{
                url:'/auth/users/bizModify',
                onSubmit: function(){
                    return $(this).form('validate');
                },
                success:function(data){
                    var result = eval('(' + data + ')');
                    if(result.status == '1'){
                        phone = $('#phone').val();
                        email = $('#email').val();
                        showMsg('修改成功！');
                    }else{
                        showMsg('修改失败！');
                    }
                }
            })
        }
    })
</script>
</body>
</html>